package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 热搜
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_hot_search")
@Schema(name = "TzHotSearch", description = "热搜")
public class TzHotSearch implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "hot_search_id", type = IdType.AUTO)
    private Long hotSearchId;

    @Schema(description = "店铺ID 0为全局热搜")
    @TableField("shop_id")
    private Long shopId;

    @Schema(description = "内容")
    @TableField("content")
    private String content;

    @Schema(description = "录入时间")
    @TableField("rec_date")
    private LocalDateTime recDate;

    @Schema(description = "顺序")
    @TableField("seq")
    private Integer seq;

    @Schema(description = "状态 0下线 1上线")
    @TableField("status")
    private Byte status;

    @Schema(description = "热搜标题")
    @TableField("title")
    private String title;
}
